import request from "@/utils/request";

export function getList(params) {
  return request({
    url: '/blog/article/list',
    method: 'get',
    params
  })
}

export function getView(id) {
  return request({
    url: '/blog/article/' + id,
    method: 'get'
  })
}

export function editList(method, data) {
  return request({
    url: '/blog/article',
    method,
    data
  })
}

export function deleteList(ids) {
  return request({
    url: '/blog/article/' + ids,
    method: 'delete',
  })
}

export function getState() {
  return request({
    url: '/blog/category/list',
    method: 'get',
  })
}
